<?php $this->layout('layout', ['title' => '给你点颜色'])?>
<?php $this->start('main')?>

<?php
$colors = [
    '绿色'         => '#2fa974',
    '蓝色'         => '#58a8f0',
    '紫色'         => '#c477f4',
    '橙色'         => '#d77b3e',
    '红色'         => '#d23623',
    '金色'         => '#efe275',
    '特殊强调'       => '#cbdfeb',
    '普通标题'       => '#fdfdfc',
    '小标题'        => '#a3b8d2',
    '普通文本'       => '#7F9FB3',
    '注释类文本'      => '#606a7d',
    '页签选中（按钮文本）' => '#d6e1ec',
    '页签未选中'      => '#7587a4',
];
?>
<table class="table table-bordered">
<?php foreach ($colors as $name => $color): ?>
<tr>
<th width="200">
<?=$name . $color?>
</th>
<td style="background-color:<?=$color?>"> </td>
</tr>
<?php endforeach?>
</table>

<?php $this->end()?>
